<%@ page import="com.cisite.web.core.MenuItems"%>

<!doctype html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName" value="${message(code: 'menuItems.label', default: 'MenuItems')}" />
<title><g:message code="default.create.label" args="[entityName]" /></title>

<link href="${resource(dir: 'webui', file: 'easyui/themes/gray/easyui.css')}"  rel="stylesheet" type="text/css" />
<link href="${resource(dir: 'webui', file: 'easyui/themes/icon.css')}"  rel="stylesheet" type="text/css" />



<style type="text/css">
#bar {
	background-color: #fff;
	width: 300px;
	height: 500px;
	border-right: 1px solid #DFDFDF;
	float: left;
}

#conat {
	float: left;
	margin-left: 20px;
	width: 500px;
}

#treebox {
	width: 290px;
	height: 500px;
	overflow: auto;
	background-color: #f5f5f5;
	border: 1px solid Silver;
}
</style>
</head>
<body>

<g:set var="entityName" value="${message(code: 'Items.label', default: 'Item')}" />

	<a href="#create-menuItems" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;" /></a>
	<div class="nav" role="navigation">
		<ul>
		
			<li><g:link class="home" action="list">
					<g:message code="default.list.label" args="[entityName]" />
				</g:link></li>
					<li id="newTreeItem"><a style="cursor:pointer;">[<g:message code="default.new.label" args="[entityName]" />]</a></li>
					<li id="delTreeItem"><a style="cursor:pointer;">[<g:message code="default.delete.label" args="[entityName]" />]</a></li>
					<li id="reflash"><a style="cursor:pointer;">[<g:message code="default.reflash.label" />]</a></li>
		</ul>
	</div>
	<div id="create-menuItems" class="content scaffold-create" role="main">
		<h1>
			
		</h1>
		<g:if test="${flash.message}">
			<div class="message" role="status">
				${flash.message}
			</div>
		</g:if>
		<g:hasErrors bean="${menuItemsInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${menuItemsInstance}" var="error">
					<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}" /></li>
				</g:eachError>
			</ul>
		</g:hasErrors>
		<g:form action="save">
			<fieldset class="form">

				<div id="bar">
					<ul id="treebox"></ul>
				</div>
				<div id="conat">
					<g:render template="form" />
					<br /> <br />
					<fieldset class="buttons">
						<g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" />
					</fieldset>
				</div>
			</fieldset>
		</g:form>
	</div>
	

<script type="text/javascript" src="${resource(dir: 'webui', file: 'easyui/jquery.easyui.min.js')}" charset="UTF-8"></script>
<script type="text/javascript" src="${resource(dir: 'webui', file: 'easyui/locale/easyui-lang-zh_CN.js')}" charset="UTF-8"></script>
<script type="text/javascript" src="${resource(dir: 'js', file: 'menuItems/menutree.js')}" charset="UTF-8"></script>
<script type="text/javascript" src="${resource(dir: 'js', file: 'jsutil.js')}" charset="UTF-8"></script>

	
</body>
</html>
